package darknet.application.chat.impl.net.message;

import darknet.core.impl.net.AbstractMessage;
import darknet.core.spec.net.MessageHeader;
import darknet.core.spec.net.Node;

/**
 * A session start message.
 *
 * This message is sent by a node to another node to notify him he wants to
 * start a new session of private message.
 *
 * @author Yoyo
 */
public class SessionStartMessage extends AbstractMessage {

    /** Serial version */
    private static final long serialVersionUID = 1L;

    /**
     * Initialise a new SessionStartMessage
     *
     * @param header
     * @param from The writer
     * @param to   The receiver
     */
    public SessionStartMessage(MessageHeader header, Node from, Node to) {

	super(header, from, to);
    }

    @Override
    public String toString() {

        StringBuilder builder = new StringBuilder("SessionStartMessage[");
        builder.append("super=");
        builder.append(super.toString());
        builder.append("]");

        return builder.toString();
    }
}
